﻿using Microsoft.Web.WebPages.OAuth;

namespace Mvc4Auth
{
    /// <summary>
    /// Festlegen der OpenAuth Logins für MyWorktime
    /// </summary>
    public static class AuthConfig
    {
        public static void RegisterAuth()
        {
            // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
            // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166

            //Facebook von johannes.renatus@gmx.de
            OAuthWebSecurity.RegisterFacebookClient(
                appId: "id",
                appSecret: "secret");
            
            //TEstAuth
            //OAuthWebSecurity.RegisterFacebookClient(
            //    appId: "id",
            //    appSecret: "secret");

            //Twitter von Squadwuschel | joecorporation@gmx.de
            OAuthWebSecurity.RegisterTwitterClient(
                consumerKey: "key",
                consumerSecret: "secret");

            OAuthWebSecurity.RegisterGoogleClient();

            //MS Account von squad_clan@hotmail.com
            OAuthWebSecurity.RegisterMicrosoftClient(
                clientId: "id",
                clientSecret: "secret");
        }
    }
}
